projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd08019
)
Change category parameter range into '1'..'16'.
author
oliskoli
<oliskoli>
Thu, 29 Jun 2006 05:50:50 +0000
(
05:50
+0000)
committer
oliskoli
<oliskoli>
Thu, 29 Jun 2006 05:50:50 +0000
(
05:50
+0000)
garmin.c
patch
|
blob
|
history
diff --git
a/garmin.c
b/garmin.c
index a7a52192487148834e30473e7d8e71278dcc5323..34d53225cc809932bebae146b869c3ab702116fd 100644
(file)
--- a/
garmin.c
+++ b/
garmin.c
@@
-57,7
+57,7
@@
arglist_t garmin_args[] = {
{ "power_off", &poweroff, "Command unit to power itself down",
NULL, ARGTYPE_BOOL, ARG_NOMINMAX},
{ "category", &category, "Category number to use for written waypoints",
- NULL, ARGTYPE_INT, "
0", "15
"},
+ NULL, ARGTYPE_INT, "
1", "16
"},
ARG_TERMINATOR
};
@@
-569,7
+569,7
@@
waypoint_write(void)
way[i]->time_populated = 1;
}
if (category) {
- way[i]->category = 1 <<
atoi(category
);
+ way[i]->category = 1 <<
(atoi(category) - 1
);
}
#if SOON
garmin_fs_garmin_before_write(wpt, way[i], gps_waypt_type);